(function ({form, table, layer, laydate, scoreinfoTableIns, url, vappraisalsid,contentType, ok, AjaxFn}) {



    table.render({
        elem: '#scoreinfoTable',
        url: url + "scoreinfoTableDatas",
        method: 'post',
        where:{vappraisalsid},
        contentType,
        limit:8,
        page: {first: '首页', last: '尾页', prev: '上一页', next: '下一页', layout: ['count', 'prev', 'page', 'next'], groups: 5, theme: '#1e9fff', limits: [10, 20, 30, 40, 50],},
        cols: [
            [
                {type: 'numbers', title: '序号', fixed: "left", unresize: true, align: "center", width: 60, minWidth: 60},
                {field: 'vdelflgname', title: '状态', unresize: true, align: "center", width: 60, minWidth: 60},
                {field: 'vstandard', title: '选项', unresize: true, align: "center", minWidth: 260},
                {field: 'iscore', title: '分值', unresize: true, align: "center", width: 60, minWidth: 60},
                {field: 'vinsdate', title: '录入时间', unresize: true, align: "center", width: 160, minWidth: 160},
            ]
        ]
    })

})({
    form: layui.form,
    table: layui.table,
    layer: layui.layer,
    laydate: layui.laydate,
    scoreinfoTableIns: '',
    vappraisalsid:$("input[name=vappraisalsid]").val(),
    url: "/evaluation/appraisal/",
    contentType: 'application/json;charset=utf-8',
    ok: function (msg, icon) {
        layui.layer.confirm(msg, {
            id: "ok",
            icon: icon,
            anim: 4,
            title: '提示',
            btn: ['确定'],
            closeBtn: false,
            success: function (layero) {
                var btn = layero[0].getElementsByClassName('layui-layer-btn')[0].getElementsByTagName('A')[0];
                btn.href = 'javascript:void(0)';
                btn.focus();
            },
            yes: function (index, layero) {
                layer.close(index); //再执行关闭
            },
            end: function () {
                var index2 = parent.layer.getFrameIndex(window.name);
                parent.layer.closeAll();
            }
        });
    },
    AjaxFn: function (url, data, resource) {
        $.ajax({
            url,
            contentType: 'application/json;charset=utf-8',
            type: 'post',
            async: false,
            data,
            success: function (res) {
                let {msg='',code=''} =res;
                msg=='' && code==''? top.location.reload() : "";
                resource = res;
            }
        });
        return resource;
    },
})